//
//  JPPayHeaderView.m
//  DHJPHotel
//
//  Created by Apple on 2018/5/21.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import "JPPayHeaderView.h"
@interface JPPayHeaderView()
@property (weak, nonatomic) IBOutlet UILabel *payNumLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *content;


@end
@implementation JPPayHeaderView
- (void)setDict:(NSDictionary *)dict
{
    _dict = dict;
    self.payNumLabel.text = dict[@"order_id"];
    self.priceLabel.text = dict[@"price"];
    self.content.text = dict[@"title"];
}
+ (instancetype)headerView
{
    UINib *nib = [UINib nibWithNibName:@"JPPayHeaderView" bundle:nil];
    JPPayHeaderView *v = [nib instantiateWithOwner:nil options:nil][0];
   
    return v;
}

- (IBAction)closeButtonClick:(UIButton *)sender
{
    [NSNotificationCenter.defaultCenter postNotificationName:kHiddenPayViewNoticfication object:nil];
}
@end
